/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.equipment.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.equipment.entity.EleEquipment;
import com.thinkgem.jeesite.modules.equipment.entity.EleEquipmentCommand;
import com.thinkgem.jeesite.modules.publish.entity.EleSourceGroupPublish;
import com.thinkgem.jeesite.modules.equipment.dao.EleEquipmentCommandDao;

/**
 * 日志命令Service
 * @author unnamed
 * @version 2017-07-05
 */
@Service
@Transactional(readOnly = true)
public class EleEquipmentCommandService extends CrudService<EleEquipmentCommandDao, EleEquipmentCommand> {

	public EleEquipmentCommand get(String id) {
		return super.get(id);
	}
	
	public List<EleEquipmentCommand> findList(EleEquipmentCommand eleEquipmentCommand) {
		return super.findList(eleEquipmentCommand);
	}
	
	public Page<EleEquipmentCommand> findPage(Page<EleEquipmentCommand> page, EleEquipmentCommand eleEquipmentCommand) {
		return super.findPage(page, eleEquipmentCommand);
	}
	
	@Transactional(readOnly = false)
	public void save(EleEquipmentCommand eleEquipmentCommand) {
		super.save(eleEquipmentCommand);
	}
	
	@Transactional(readOnly = false)
	public void delete(EleEquipmentCommand eleEquipmentCommand) {
		super.delete(eleEquipmentCommand);
	}
	public List<EleEquipmentCommand> findListByEquipmentId(String equipmentId,String status,String type) {
		return dao.findListByEquipmentId(equipmentId, status,type);
	}
	public List<EleEquipmentCommand> findListByEquipments(List<EleEquipment> list,String status) {
		return dao.findListByEquipments(list, status);
	}
	@Transactional(readOnly = false)
	public void batchDelete(List<EleEquipmentCommand> list,String status){
		dao.batchDelete(list, status);
	}
}